package com.lu.test;

import java.util.Map;

/**
 * @author luke
 * @className Parent
 * @description
 * @date 2021/09/26 09:56
 */
public class Parent {
    protected void printName(){
        System.out.println("parent.....");
        printAge();
    }

    protected void printAge(){
        System.out.println("parent age 88");
    }

    public static void main(String[] args) {
        Son s = new Son();
        s.printName();
    }



}

class Son extends Parent {

    public void printName(){
        super.printName();
        System.out.println("son.....");
    }

    public void printAge(){
        System.out.println("son age 18");
    }

}
